package com.woniuxy.admin.client;

import com.woniuxy.openfeign.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "goods",path = "/goods")
public interface GoodsFeignClient {

    /**
     * 修改账户id对应待办流程
     * @param accountId 账户id
     * @return 流程集合
     *
     */
    @GetMapping("/processExecute/updateProcessByAccountId")
    public Result updateProcessByAccountId(@RequestParam("accountId")Integer accountId);


    /**
     * 修改店长对应待办流程
     * @param oldAccountId 旧店长id
     * @param newAccountId 新店长id
     * @return 流程集合
     * @throws Exception
     */
    @GetMapping("/processExecute/updateProcessByBoss")
    public Result updateProcessByBoss(@RequestParam("oldAccountId")Integer oldAccountId,@RequestParam("newAccountId")Integer newAccountId);
}
